//package cn.kgc83.shengyin.config;
//
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @author oldliu
// * @since 1.0
// */
//@Configuration
//public class ShengConfig implements WebMvcConfigurer {
//        @Value("${upload-path}")
//        private String uploadpath;
//        @Override
//        public void addResourceHandlers(ResourceHandlerRegistry registry) {
////            registry.addResourceHandler("/showImage/**")
////                    .addResourceLocations("file:///"+uploadpath);
//                        registry.addResourceHandler("/**")
//                   .addResourceLocations("file:///"+uploadpath);
//
//        }
//}
